import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listUser(query) {
  return request({
    // url: '/system/user/list',
    url: 'all/wechat/findAll',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getUser(uId) {
  return request({
    // url: '/system/user/' + uId,
    url: '/system/user/zkwlUseraControllersaa/zkselectZkwlUserByUId' + uId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addUser(data) {
  return request({
    // url: '/system/user',
    url: '/system/user/zkwlUseraControllersaa/zkselectZkwlUserByUId',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateUser(data) {
  return request({
    // url: '/system/user',
    url: '/system/user/zkwlUseraControllersaa/zkselectZkwlUserByUId',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delUser(uId) {
  return request({
    // url: '/system/user/' + uId,
    url: '/system/user/zkwlUseraControllersaa/zkselectZkwlUserByUId',
    method: 'delete'
  })
}

// 微信客资转为客资
export function seletWekeziAll(data) {
  return request({
    // url: '/system/user/' + uId,
    url: '/PC/WechatKzPCler/seletWekeziAll',
    method: 'post',
    data: data
  })
}
// 微信客资转为客资
export function insertZkwlResourcePCwechat(data) {
  return request({
    // url: '/system/user/' + uId,
    url: '/PC/WechatKzPCler/insertZkwlResourcePC',
    method: 'post',
    data: data
  })
}
// 新增客资
export function insertZkwlResourcePC(data) {
  return request({
    url: '/PC/ZkwlResourcePC/insertZkwlResourcePC',
    method: 'post',
    data: data
  })
}
// 微信客资预约列表
export function selectyuyueAll(data) {
  return request({
    url: '/PC/WechatKzPCler/selectyuyueAll',
    method: 'post',
    data: data
  })
}
// 微信客资驳回
export function updatewechat(data) {
  return request({
    url: '/all/wechat/updatewechat',
    method: 'post',
    data: data
  })
}
// 查看作废原因
export function selectremark(data) {
  return request({
    url: '/all/wechat/selectremark',
    method: 'post',
    data: data
  })
}
// 预约列表
export function findAllYuyueUser(query) {
  return request({
    url: '/all/wechat/findAllYuyueUser',
    method: 'get',
    params:query
  })
}